import request from '@/utils/request'

export function listtsBox(query) {
  return request({
    url: '/material/tsBox/list',
    method: 'get',
    params: query
  })
}

export function createtsBox(data) {
  return request({
    url: '/material/tsBox/create',
    method: 'post',
    data
  })
}

export function readtsBox(data) {
  return request({
    url: '/material/tsBox/get/' + data.id,
    method: 'get'
  })
}

export function updatetsBox(data) {
  return request({
    url: '/material/tsBox/update',
    method: 'post',
    data
  })
}

export function deletetsBox(data) {
  let formatObj = data.fequipmentbarcode.replace(/\#/g,"%23")
  return request({
    url: '/material/tsBox/delete/' + formatObj,
    method: 'delete'
  })
}
